package com.zhny.iot.transparent.pump.plugin.model;
import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;

import java.io.Serializable;

/**
 * @Author pengshuai
 * @Date 2023/11/24
 */
public class ZhnyPumpHouseControlStoreEntity extends StoreEntity implements Serializable{

    @PropertyValue(alias = "通道1",description = "通道1",unit = "",icon = IconConstract.Other,variableType = VariableType.Passage,
            actions = {
                @ActionValue(name = Operate.Open,commandCode = "open1",eventType = EventType.Click),
                @ActionValue(name = Operate.Close,commandCode = "close1",eventType = EventType.Click)
            })
    private Boolean access1;

    @PropertyValue(alias = "通道2",description = "通道2",unit = "",icon = IconConstract.Other,variableType = VariableType.Passage,
            actions = {
                    @ActionValue(name = Operate.Open,commandCode = "open2",eventType = EventType.Click),
                    @ActionValue(name = Operate.Close,commandCode = "close2",eventType = EventType.Click)
            })
    private Boolean access2;

    @PropertyValue(alias = "电机通电情况A",description = "电机通电情况A",unit = "",icon = IconConstract.Other,variableType = VariableType.Numerical,
            actions = {
                    @ActionValue(name = Operate.Check,commandCode = "query",eventType = EventType.Click)
            })
    private String powerA;

    @PropertyValue(alias = "电机通电情况B",description = "电机通电情况B",unit = "",icon = IconConstract.Other,variableType = VariableType.Numerical,
            actions = {
                    @ActionValue(name = Operate.Check,commandCode = "query",eventType = EventType.Click)
            })
    private String powerB;

    public Boolean getAccess1() {
        return access1;
    }

    public void setAccess1(Boolean access1) {
        this.access1 = access1;
    }

    public Boolean getAccess2() {
        return access2;
    }

    public void setAccess2(Boolean access2) {
        this.access2 = access2;
    }

    public void setPowerA(String powerA) {
        this.powerA=powerA;
    }
    public String getPowerA() {
        return this.powerA;
    }

    public void setPowerB(String powerB) {
        this.powerB=powerB;
    }
    public String getPowerB() {
        return this.powerB;
    }
}
